<?php
class Pointmodel extends CI_Model{

public function __construct(){

        parent::__construct();
}

public function get_point(){
  $sql="select * from point where del=0";
  $query=$this->db->query($sql);
  if($query->num_rows()>0){
    $arr=$query->result_array();
  }else{
    $arr=0;
  }
  return $arr;
}


public function get_point_list(){
  $sql="select * from point_list";
  $query=$this->db->query($sql);
  if($query->num_rows()>0){
    $arr=$query->result_array();
  }else{
    $arr=0;
  }
  return $arr;
}


public function get_departs(){
  $sql="select * from depart";
  $query=$this->db->query($sql);
  if($query->num_rows()>0){
    $arr=$query->result_array();
  }else{
    $arr=0;
  }
  return $arr;
}

public function get_roles(){
  $sql="select * from role";
  $query=$this->db->query($sql);
  if($query->num_rows()>0){
    $arr=$query->result_array();
  }else{
    $arr=0;
  }
  return $arr;
}


}


?>
